package com.netease.pris.activity;

import android.text.TextUtils;
import android.widget.LinearLayout;
import android.widget.Toast;
import com.netease.pris.activity.view.NeteaseListView;
import com.netease.pris.app.PrisApp;
import com.netease.pris.atom.ad;
import com.netease.pris.atom.g;
import com.netease.pris.atom.o;
import com.netease.pris.atom.r;
import com.netease.pris.atom.u;
import com.netease.pris.b;
import com.netease.pris.protocol.d;
import java.util.LinkedList;

class bi extends b
{
  bi(FavoriteListActivity paramFavoriteListActivity)
  {
  }

  public void a(int paramInt, d paramd)
  {
    if (paramd == null)
      if (FavoriteListActivity.h(this.a).contains(new Integer(paramInt)))
        FavoriteListActivity.h(this.a).remove(new Integer(paramInt));
    while (true)
    {
      return;
      if (paramd.h.size() > 0)
      {
        if (FavoriteListActivity.h(this.a).contains(new Integer(paramInt)))
        {
          FavoriteListActivity.h(this.a).remove(new Integer(paramInt));
          Toast.makeText(FavoriteListActivity.c(this.a), 2131361946, 0).show();
        }
        u localu = new u();
        localu.q(((u)paramd.h.getFirst()).V());
        FavoriteListActivity.n(this.a).remove(localu);
        continue;
      }
      if ((paramd.i.size() <= 0) || (!FavoriteListActivity.h(this.a).contains(new Integer(paramInt))))
        continue;
      FavoriteListActivity.h(this.a).remove(new Integer(paramInt));
      Toast.makeText(FavoriteListActivity.c(this.a), ((r)paramd.i.getFirst()).e(), 0).show();
    }
  }

  public void b(int paramInt)
  {
    FavoriteListActivity.g(this.a);
  }

  public void c(int paramInt1, int paramInt2, String paramString, boolean paramBoolean)
  {
    if (FavoriteListActivity.h(this.a).contains(new Integer(paramInt1)))
      FavoriteListActivity.h(this.a).remove(new Integer(paramInt1));
    this.a.b();
    dc.a(FavoriteListActivity.c(this.a), paramInt2);
  }

  public void c(int paramInt, d paramd, boolean paramBoolean)
  {
    if (FavoriteListActivity.h(this.a).contains(new Integer(paramInt)))
    {
      FavoriteListActivity.h(this.a).remove(new Integer(paramInt));
      this.a.b();
      FavoriteListActivity.j(this.a).removeFooterView(FavoriteListActivity.i(this.a));
      FavoriteListActivity.a(this.a, false);
      if (paramd != null)
        break label78;
    }
    while (true)
    {
      return;
      label78: FavoriteListActivity.a(this.a, paramd, paramBoolean);
      if (!paramBoolean)
      {
        PrisApp.a().b(paramd);
        FavoriteListActivity.a(this.a, paramd);
        label107: if (paramd.h.size() != 0)
          break label239;
        FavoriteListActivity.l(this.a).setVisibility(0);
      }
      String str2;
      while (true)
      {
        String str1 = FavoriteListActivity.m(this.a);
        FavoriteListActivity.a(this.a, null);
        if (paramd.g == null)
          break;
        str2 = paramd.g.b(g.i);
        if (TextUtils.isEmpty(str2))
          break;
        if (!str2.equals(str1))
          break label254;
        FavoriteListActivity.a(this.a, null);
        break;
        if ((FavoriteListActivity.k(this.a) == null) || (FavoriteListActivity.k(this.a).h == null))
          break label107;
        FavoriteListActivity.k(this.a).h.addAll(paramd.h);
        break label107;
        label239: FavoriteListActivity.l(this.a).setVisibility(8);
      }
      label254: FavoriteListActivity.a(this.a, str2);
    }
  }

  public void i(int paramInt1, int paramInt2, String paramString)
  {
    if (FavoriteListActivity.h(this.a).contains(new Integer(paramInt1)))
    {
      FavoriteListActivity.h(this.a).remove(new Integer(paramInt1));
      dc.a(FavoriteListActivity.c(this.a), paramInt2);
    }
  }

  public void k(int paramInt, d paramd)
  {
    if (paramd == null)
      if (FavoriteListActivity.h(this.a).contains(new Integer(paramInt)))
        FavoriteListActivity.h(this.a).remove(new Integer(paramInt));
    while (true)
    {
      return;
      if (paramd.j.size() > 0)
      {
        u localu = new u();
        localu.q(((o)paramd.j.getFirst()).a());
        FavoriteListActivity.n(this.a).add(localu);
        if (!FavoriteListActivity.h(this.a).contains(new Integer(paramInt)))
          continue;
        FavoriteListActivity.h(this.a).remove(new Integer(paramInt));
        Toast.makeText(FavoriteListActivity.c(this.a), 2131361947, 0).show();
        this.a.onResume();
        continue;
      }
      if ((paramd.i.size() <= 0) || (!FavoriteListActivity.h(this.a).contains(new Integer(paramInt))))
        continue;
      FavoriteListActivity.h(this.a).remove(new Integer(paramInt));
      Toast.makeText(FavoriteListActivity.c(this.a), ((r)paramd.i.getFirst()).e(), 0).show();
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.bi
 * JD-Core Version:    0.6.0
 */